<?php

namespace Drinkiit\BlogBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class AdminUtilisateurType extends AbstractType
{
    public function buildForm(FormBuilder $builder, array $options)
    {
        $builder
            ->add('userid', 'hidden')
            ->add('username', 'text', array( 'label' => 'Pseudo', 'required' => false ) )
            ->add('nom', NULL, array( 'label' => 'Nom', 'required' => false ) )
            ->add('prenom', NULL, array( 'label' => 'Prénom', 'required' => false ) )
            ->add('email', 'email', array( 'label' => 'Email', 'required' => false ) )
            ->add('password', NULL, array( 'label' => 'Modifier le mot de passe', 'required' => false ) )
        ;
    }

    public function getName()
    {
        return 'admin_management_user';
    }
}
